﻿@model ORM.Areas.Admin.ViewModels.ManageApproval.AnswerDetailsViewModel
<b>Question:</b><br />
<fieldset style="border-width: 2px; background-color: whitesmoke; padding-top: 10px;
    padding-bottom: 10px">
    <table width="100%" style="vertical-align: top">
        <tr>
            <td style="width: 15%; vertical-align: top; padding-top: 0px">
                <br />
                <center>
                    <fieldset style="margin-top: 0px; padding: 5px;">
                        <b id="questionPoint @Model.Question.Id">@Model.Question.UpVotes</b><br />
                        Điểm
                        <br />
                    </fieldset>
                    <a class="titleLink" href="/Account/Details?Id=@Model.Question.PostedById">@Model.Question.PostedBy.Username</a><br />
                    @Model.Question.PostedDate.ToString("dd/MM/yyyy")<br />
                    @Model.Question.PostedDate.ToString("HH:mm")<br />
                    @if (Model.Question.IsResolved)
                    {
                                      
                        <img src="/Content/Images/Resolved.ico" width="40px" height="40px" title="Đã Được Giải Quyết" />
                    }
                    else
                    {
                        <div id="isResolvedQuestion" align="right">
                        </div>
                    }
                </center>
            </td>
            <td style="width: 85%; border-left: 2px solid gainsboro; padding-left: 22px; padding-bottom: 0px;
                vertical-align: top; position: relative">
                <div>
                    <b><span style="font-size: 18px">@Model.Question.Title</span> </b>
                    <br />
                    <div style="font-size: 13px; padding-top: 3px; padding-bottom: 5px">
                        @Model.Question.Model.Device.Name
                        @Model.Question.Model.Manufacturer.Name
                        @Model.Question.Model.Name
                    </div>
                    @Html.Raw(Model.Question.ContentHtml)
                </div>
            </td>
        </tr>
    </table>
</fieldset>
<br />
<br />
<br />
<b>Answer:</b><br />
<fieldset style="border-width: 3px">
    <table width="100%" style="vertical-align: top">
        <td style="width: 15%; vertical-align: top">
            <br />
            <center>
                <a class="titleLink" href="/Account/Details?Id=@Model.Answer.PostedById">@Model.Answer.PostedBy.Username</a><br />
                @Model.Answer.PostedDate.ToString("dd/MM/yyyy")<br />
                @Model.Answer.PostedDate.ToString("HH:mm")<br />
            </center>
        </td>
        <td style="width: 85%; border-left: 2px solid gainsboro; padding-left: 22px; vertical-align: top">
            <div>
                @Html.Raw(Model.Answer.ContentHtml)
            </div>
        </td>
    </table>
</fieldset>
